package com.company;

public class Main {

    public static void main(String[] args) {
        Person Tom = new Person();
        Tom.setId("201902999");
        Tom.setName("Tom");

        Aircraft aircraft1 = new Aircraft();
        aircraft1.setAirTransportid("7001");

        Bicycle bicycle1 = new Bicycle();
        bicycle1.setLandTransportid("1001");

        Ship ship1 = new Ship();
        ship1.setMaritimeMeansOfTransportid("4001");

        System.out.print(Tom.getName()+"\t");
        aircraft1.drivingMethod();
        System.out.print("\n");

        System.out.print(Tom.getName()+"\t");
        bicycle1.drivingMethod();
        System.out.print("\n");

        System.out.print(Tom.getName()+"\t");
        ship1.drivingMethod();
    }
}
